package ssm.mapper;

import org.apache.ibatis.annotations.Param;
import ssm.model.entity.VideoOrder;

import java.util.List;

public interface VideoOrderMapper {

    VideoOrder findByuserIdAndVideoIdAndState(@Param("user_id") int userId, @Param("video_id") int videoId, @Param("state") int state);

    int saveOrder(VideoOrder videoOrder);

    List<VideoOrder> listOrderByUserId(@Param("user_id") Integer userId);

}
